From 8491525fc28a88ad06098c14b05517ab5db34e88 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 18 Mar 2008 21:05:47 +0000 Subject: [PATCH] ia64: Fix ACPI header inclusion into libxc. Signed-off-by: Alex Williamson --- tools/libxc/ia64/dom_fw_acpi.c | 1 + tools/libxc/ia64/xc_dom_ia64_util.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tools/libxc/ia64/dom_fw_acpi.c b/tools/libxc/ia64/dom_fw_acpi.c index 09d1281a15..cb13a94ea5 100644 --- a/tools/libxc/ia64/dom_fw_acpi.c +++ b/tools/libxc/ia64/dom_fw_acpi.c @@ -1,4 +1,5 @@ #include +#include "xc_dom_ia64_util.h" #include uint8_t diff --git a/tools/libxc/ia64/xc_dom_ia64_util.h b/tools/libxc/ia64/xc_dom_ia64_util.h index 61bfa61830..f103d199bb 100644 --- a/tools/libxc/ia64/xc_dom_ia64_util.h +++ b/tools/libxc/ia64/xc_dom_ia64_util.h @@ -23,4 +23,8 @@ extern int shared_info_ia64(struct xc_dom_image *dom, void *ptr); #define FW_MEM_BASE 0xff000000UL #define FW_MEM_SIZE 0x01000000UL +#ifdef __XEN_TOOLS__ +/* Necessary for including the acpi header chain when not in kernel context */ +typedef struct { } spinlock_t; +#endif #endif /* XC_IA64_DOM_IA64_UTIL_H */ -- 2.30.2